std::forward_list::clear

From Cppreference

Jump to: navigation, search
void clear();
(C++0x feature)

Removes all elements from the container. The past-the-end iterators are not invalidated.

Contents

Parameters

(none)

Return value

(none)

Complexity

linear in the size of the container.

See also

erase_after
erases an element after an element
(public member function)
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox
In other languages